home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 December / EnterCD_12_2006.iso / Pelne / Software Virtualization Solution / Software_Virtualization_Agent.msi / AltirisVSProvider.mof < prev    next >
Encoding:
Text File  |  2006-05-17  |  5.0 KB  |  110 lines

  1. // AltirisVSProvider.mof : mof source for AltirisVSProvider
  2. //
  3. //
  4. // This file will be processed by MOFCOMP utility to
  5. // register the provider with the WMI repository
  6. //
  7. //  TODO: Consider combining this mof with the mof that defines the class that this 
  8. //        provider provides.
  9.  
  10.  
  11. #pragma autorecover
  12. #pragma namespace ("\\\\.\\root\\default")
  13.  
  14. class Win32_ProviderEx : __Win32Provider
  15. {
  16.     [Description ( "Hosting Model, provides compatibility with Windows XP and Windows Server .NET. Do not override." ) , Override("HostingModel")]
  17.     string HostingModel = "NetworkServiceHost";
  18.     [Description("..."),Override("SecurityDescriptor")] 
  19.     string SecurityDescriptor; 
  20.     UInt32 version = 1;
  21. } ;
  22.  
  23. instance of Win32_ProviderEx as $VSProv
  24. {
  25.     Name    = "VSProv" ;    //Name is the key property for __Provider objects.
  26.                                         //vendor|provider|version is the suggested format
  27.                                         //to prevent name collisions.
  28.  
  29.     ClsId   = "{71D8DF9A-AD2D-44BF-A542-1412F68061D1}" ;     //provider GUID
  30.  
  31.     DefaultMachineName = NULL;         //NULL for local machine
  32.  
  33.     ClientLoadableCLSID = NULL;         //reserved
  34.  
  35.     ImpersonationLevel = 0;             //reserved
  36.  
  37.     InitializationReentrancy = 0;        //Set of flags that provide information about serialization:
  38.                                         //0 = all initialization of this provider must be serialized
  39.                                         //1 = all initializations of this provider in the same namespace must be serialized
  40.                                         //2 = no initialization serialization is necessary
  41.  
  42.     InitializeAsAdminFirst = FALSE;        //Request to be fully initialized as "Admin" before 
  43.                                         //initializations begin for users
  44.  
  45.     PerLocaleInitialization = FALSE;    //Indicates whether the provider is initialized for each 
  46.                                         //locale if a user connects to the same namespace more 
  47.                                         //than once using different locales.
  48.  
  49.     PerUserInitialization = FALSE;        //Indicates whether the provider is initialized once for each actual 
  50.                                         //Windows NT/Windows 2000 NTLM user making requests of the provider. 
  51.                                         //If set to FALSE, the provider is initialized once for all users
  52.  
  53.     Pure = TRUE;                        //A pure provider exists only to service requests from 
  54.                                         //applications and WMI. Most providers are pure providers
  55.                                         //Non-pure providers transition to the role of client after they have 
  56.                                         //finished servicing requests. 
  57.  
  58.  
  59.     UnloadTimeout = NULL;                //Currently ignored
  60.                                         //Use __CacheControl class in the root namespace to control provider unloading
  61.                                         //A string in the DMTF date/time format that specifies how long WMI 
  62.                                         //allows the provider to remain idle before it is unloaded.
  63.                                         
  64.  
  65. } ;    
  66.  
  67. instance of __InstanceProviderRegistration
  68. {
  69.     Provider = $VSProv;
  70.  
  71.     SupportsPut = "FALSE"; 
  72.     SupportsGet = "FALSE"; 
  73.     SupportsDelete = "FALSE"; 
  74.     SupportsEnumeration = "FALSE"; 
  75. };
  76.  
  77. instance of __MethodProviderRegistration
  78. {
  79.     Provider = $VSProv;
  80. };
  81.  
  82. [dynamic: ToInstance, provider("VSProv")]class AltirisVSProv      
  83. {                                                                  
  84.     [implemented, static, Description("Enumerates all the layers present on the system."): ToInstance ToSubClass]
  85.         uint32 EnumerateLayers([IN] boolean Verbose = TRUE, [OUT] string EnumData);
  86.     [implemented, static, Description("Activates the layer."): ToInstance ToSubClass]
  87.         uint32 Activate([IN] string layerNameOrGuid);
  88.     [implemented, static, Description("Deactivates the layer."): ToInstance ToSubClass]
  89.         uint32 Deactivate([IN] string layerNameOrGuid, [IN] boolean force = FALSE);
  90.     [implemented, static, Description("Deletes the layer."): ToInstance ToSubClass]
  91.         uint32 Delete([IN] string layerNameOrGuid);
  92.     [implemented, static, Description("Resets the layer."): ToInstance ToSubClass]
  93.         uint32 Reset([IN] string layerNameOrGuid, [IN] boolean force = FALSE);
  94.     [implemented, static, Description("AutoActivates the layer."): ToInstance ToSubClass]
  95.         uint32 AutoActivate([IN] string layerNameOrGuid, [IN] boolean autoActivate = TRUE);
  96.     [implemented, static, Description("Imports the layer from specified path."): ToInstance ToSubClass]
  97.         uint32 Import([IN] string fileName, [IN] boolean overwrite = FALSE);
  98.     [implemented, static, Description("Exports the layer to the specified path."): ToInstance ToSubClass]
  99.         uint32 Export([IN] string layerNameOrGuid, [IN] string filePath, [IN] boolean overwrite = FALSE);
  100.     [implemented, static, Description("Renames a layer"): ToInstance ToSubClass]
  101.         uint32 Rename([IN] string layerNameOrGuid, [IN] string newName);
  102.     [implemented, static, Description("Sends inventory to the NS Server."): ToInstance ToSubClass]
  103.         uint32 SendInventory();
  104.     [implemented, static, Description("Returns the version of the Software Virtualization Agent."): ToInstance ToSubClass]
  105.         uint32 GetVersion([OUT] string versionData);
  106.     [implemented, static, Description("Starts capturing in to the layer."): ToInstance ToSubClass]
  107.         uint32 StartCapture([IN] string layerNameOrGUid, [IN] string pathToExe);
  108.     [implemented, static, Description("Stops the capture."): ToInstance ToSubClass]
  109.         uint32 StopCapture();
  110. };